package cool.tianyou.blue.bird.common.service;

import cool.tianyou.blue.bird.common.mapper.ExtractRuleMapper;
import cool.tianyou.blue.bird.common.model.po.ExtractRule;
import java.util.List;
import java.util.concurrent.ExecutorService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * @author Liutianyou
 * @date 2021/11/22 11:01 PM
 */
@Service
@RequiredArgsConstructor
public class ExtractRuleService {
  private final ExtractRuleMapper extractRuleMapper;

  /**
   * 查询所有的规则
   * @return
   */
  public List<ExtractRule> rules(){
    return extractRuleMapper.selectAll();
  }
}
